/*
 * Copyright (C) 2011 Nanohex Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.nanohexcorp.kudocode.snapqr.object;

public class QRLinksObject {
  // private
  private int id;
  private String title;
  private String url;
  private String description;

  // getter and setter
  public int getID() { return this.id; }
  public void setID(int id) { this.id = id; }

  public String getTitle() { return this.title; }
  public void setTitle(String title) { this.title = title; }

  public String getUrl() { return this.url; }
  public void setUrl(String url) { this.url = url; }

  public String getDescription() { return this.description; }
  public void setDescription(String description) { this.description = description; }

  // Constructor
  public QRLinksObject(int id, String title, String url, String description) {
    set(id, title, url, description);
  }

  // Constructor
  public QRLinksObject(String title, String url, String description) {
    set(title, url, description);
  }

  // Constructor
  public QRLinksObject() {
  }

  public void set(int id, String title, String url, String description) {
	this.id = id;
    this.title = title;
	this.url = url;
	this.description = description;
  }

  public void set(String title, String url, String description) {
	this.id = 0;
    this.title = title;
	this.url = url;
	this.description = description;
  }
}
